home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
demos
/
GL
/
ideas
/
a.c
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
4KB
|
175 lines
/*
* Copyright 1992, 1993, 1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
*/
#include <gl.h>
static float a_data[][2] = {
{5.618949, 10.261048},
{5.322348, 9.438848},
{5.124614, 10.030832},
{4.860968, 9.488181},
{4.811534, 9.932169},
{3.938208, 9.438848},
{3.658084, 9.685509},
{2.784758, 8.994862},
{2.801236, 9.175745},
{1.960865, 8.172662},
{1.186406, 7.761562},
{1.252317, 6.561151},
{0.576725, 6.610483},
{0.939238, 5.525180},
{0.164779, 4.883864},
{0.840371, 4.818089},
{0.230690, 3.963001},
{0.939238, 4.242549},
{0.609681, 3.255909},
{1.268795, 3.963001},
{1.021627, 3.075026},
{1.861998, 4.045221},
{1.829042, 3.535457},
{2.817714, 4.818089},
{3.163749, 4.998972},
{3.971164, 6.643371},
{4.267765, 6.725591},
{4.663234, 7.630010},
{5.404737, 9.734840},
{4.646756, 9.669065},
{5.108136, 8.731757},
{4.679712, 8.600205},
{4.926879, 7.564234},
{4.366632, 6.692703},
{4.663234, 5.344296},
{3.888774, 4.850976},
{4.630278, 4.094553},
{3.954686, 3.963001},
{4.828012, 3.798561},
{4.168898, 3.321686},
{5.157569, 3.864337},
{4.514933, 3.091470},
{5.553038, 4.045221},
{5.305870, 3.634121},
{5.932029, 4.176773},
};
void draw_a() {
bgntmesh();
v2f(a_data[0]);
v2f(a_data[1]);
v2f(a_data[2]);
v2f(a_data[3]);
v2f(a_data[4]);
v2f(a_data[5]);
v2f(a_data[6]);
v2f(a_data[7]);
v2f(a_data[8]);
v2f(a_data[9]);
v2f(a_data[10]);
v2f(a_data[11]);
v2f(a_data[12]);
v2f(a_data[13]);
v2f(a_data[14]);
v2f(a_data[15]);
v2f(a_data[16]);
v2f(a_data[17]);
v2f(a_data[18]);
v2f(a_data[19]);
v2f(a_data[20]);
v2f(a_data[21]);
v2f(a_data[22]);
v2f(a_data[23]);
v2f(a_data[24]);
v2f(a_data[25]);
v2f(a_data[26]);
v2f(a_data[27]);
endtmesh();
bgntmesh();
v2f(a_data[28]);
v2f(a_data[29]);
v2f(a_data[30]);
v2f(a_data[31]);
v2f(a_data[32]);
v2f(a_data[33]);
v2f(a_data[34]);
v2f(a_data[35]);
v2f(a_data[36]);
v2f(a_data[37]);
v2f(a_data[38]);
v2f(a_data[39]);
v2f(a_data[40]);
v2f(a_data[41]);
v2f(a_data[42]);
v2f(a_data[43]);
v2f(a_data[44]);
endtmesh();
bgnline();
v2f(a_data[0]);
v2f(a_data[2]);
v2f(a_data[4]);
v2f(a_data[6]);
v2f(a_data[8]);
v2f(a_data[10]);
v2f(a_data[12]);
v2f(a_data[14]);
v2f(a_data[16]);
v2f(a_data[18]);
v2f(a_data[20]);
v2f(a_data[22]);
v2f(a_data[24]);
v2f(a_data[26]);
v2f(a_data[27]);
v2f(a_data[25]);
v2f(a_data[23]);
v2f(a_data[21]);
v2f(a_data[19]);
v2f(a_data[17]);
v2f(a_data[15]);
v2f(a_data[13]);
v2f(a_data[11]);
v2f(a_data[9]);
v2f(a_data[7]);
v2f(a_data[5]);
v2f(a_data[3]);
v2f(a_data[1]);
endline();
bgnline();
v2f(a_data[28]);
v2f(a_data[30]);
v2f(a_data[32]);
v2f(a_data[34]);
v2f(a_data[36]);
v2f(a_data[38]);
v2f(a_data[40]);
v2f(a_data[42]);
v2f(a_data[44]);
v2f(a_data[43]);
v2f(a_data[41]);
v2f(a_data[39]);
v2f(a_data[37]);
v2f(a_data[35]);
v2f(a_data[33]);
v2f(a_data[31]);
v2f(a_data[29]);
endline();
}